package com.yy.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 描述
 * 作者 yy
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ConfigurationProperties(prefix = "alipay")
@Component
public class AlipayProperties {
    //支付宝网关名、partnerId和appId
    private String openApiDomain = "https://openapi.alipaydev.com/gateway.do";
    private String mcloudApiDomain = "http://mcloudmonitordev.com/gateway.do";
    private String pid;
    private String appId = "9021000131631954";
    // RSA私钥、公钥和支付宝公钥
    private String privateKey;
    private String publicKey;
    //SHA1withRsa对应支付宝公钥
    //SHA256withRsa对应支付宝公钥
    private String alipayPublicKey;

    // 签名类型: RSA->SHA1withRsa,RSA2->SHA256withRsa
    private String signType = "RSA2";
    // 当面付最大查询次数和查询间隔（毫秒）
    private String maxQueryRetry = "5";
    private String queryDuration = "5000";

    // 当面付最大撤销次数和撤销间隔（毫秒）
    private String maxCancelRetry = "3";
    private String cancelDuration = "2000";
    // 交易保障线程第一次调度延迟和调度间隔（秒）
    private String heartbeatDelay = "5";
    private String heartbeatDuration = "900";

    //编码
    private String charset="UTF-8";

    //回调地址
    private String notifyUrl;


}
